package com.ruoyi.basebill.DTO;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @projectName: wfz
 * @package: com.ruoyi.basebill.DTO
 * @className: JtgzflInfo
 * @author: Eric
 * @description: TODO
 * @date: 2023/1/13 15:49
 * @version: 1.0
 */
public class JtgzflInfo {
    @NotBlank(message = "单据编码不能为空")
    private String fnumber ;

    private String fcompany ;
    @NotBlank(message = "薪酬期间不能为空")
    private String fperiod ;
    @NotBlank(message = "唯一标识不能为空")
    private String fsourcebillid ;
    @Valid // 嵌套验证必须用@Valid
    @NotEmpty(message = "明细集合不能为空")
    @Size(min = 1, message = "明细集合至少要有一个自定义属性")
    private List<JtgzflEntryInfo> entry;

    public String getFnumber() {
        return fnumber;
    }

    public void setFnumber(String fnumber) {
        this.fnumber = fnumber;
    }

    public String getFcompany() {
        return fcompany;
    }

    public void setFcompany(String fcompany) {
        this.fcompany = fcompany;
    }

    public String getFperiod() {
        return fperiod;
    }

    public void setFperiod(String fperiod) {
        this.fperiod = fperiod;
    }

    public String getFsourcebillid() {
        return fsourcebillid;
    }

    public void setFsourcebillid(String fsourcebillid) {
        this.fsourcebillid = fsourcebillid;
    }

    public List<JtgzflEntryInfo> getEntry() {
        return entry;
    }

    public void setEntry(List<JtgzflEntryInfo> entry) {
        this.entry = entry;
    }
}
